ListItem Constructor(Object[],Int32,Object,Color,Color,Int32,Font,GradientEffect,String,Object,Boolean)
In This Topic
Initializes a new instance of the
ListItem class with settings.
Syntax
'Declaration
Public Function New( _
ByVal () As Object, _
ByVal As Integer, _
ByVal As Object, _
ByVal As Color, _
ByVal As Color, _
ByVal As Integer, _
ByVal As Font, _
ByVal As GradientEffect, _
ByVal As String, _
ByVal As Object, _
ByVal As Boolean _
)
'Usage
Dim subItems() As Object
Dim indent As Integer
Dim image As Object
Dim backColor As Color
Dim foreColor As Color
Dim height As Integer
Dim font As Font
Dim gradientEffect As GradientEffect
Dim toolTipText As String
Dim tag As Object
Dim visible As Boolean
Dim instance As New ListItem(subItems, indent, image, backColor, foreColor, height, font, gradientEffect, toolTipText, tag, visible)
public ListItem(
object[] ,
int ,
object ,
Color ,
Color ,
int ,
Font ,
GradientEffect ,
string ,
object ,
bool
)
Parameters
- subItems
- A collection of the SubItem.
- indent
- An System.Int32 value that represents the indent of the ListItem.
- image
- An object value that represents the imgae of the ListItem.
- backColor
- A System.Drawing.Color value that represents the background color of the ListItem.
- foreColor
- A System.Drawing.Color value that represents the foreground color of the ListItem.
- height
- An System.Int32 value that represents the height of the ListItem.
- font
- A Font value that represents the font of the ListItem.
- gradientEffect
- A GradientEffect that represents the gradient effect of the ListItem.
- toolTipText
- A System.String value that represents the tool-tip text of the ListItem.
- tag
- An object value that represents the tag of the ListItem.
- visible
- A bool value that represents whether the ListItem is visible or not.
See Also